package com.ayf.payment.game.api.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Table;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@Table(name = "g_merchant_account")
public class MerchantAccount implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 商户ID
     */
    @Column(name = "merchant_id")
    private Integer merchantId;

    /**
     * 账户余额
     */
    @Column(name = "balance")
    private BigDecimal balance;

    /**
     * 冻结金额
     */
    @Column(name = "freezing")
    private BigDecimal freezing;

    /**
     * 可提现金额
     */
    @Column(name = "cash_withdrawal")
    private BigDecimal cashWithdrawal;

    /**
     * 提现中的金额
     */
    @Column(name = "cash_in")
    private BigDecimal cashIn;

    /**
     * 分账金额
     */
    @Column(name = "split_amt")
    private BigDecimal splitAmt;

    /**
     * 创建时间
     */
    @Column(name = "create_time")
    private Date createTime;

    /**
     * 最后更新时间
     */
    @Column(name = "last_update_time")
    private Date lastUpdateTime;


}